package com.zxl.yjb.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by Songshaoyong on 2016/6/21 0021.
 * 这是一个Toast工具类，简化了
 */
public class ToastUtils {
		private static Toast mToast;

		public static void show(Context context, String text) {
			if (mToast == null) {
				mToast = Toast.makeText(context, text, Toast.LENGTH_SHORT);
			}
			mToast.setDuration(Toast.LENGTH_SHORT);
			mToast.setText(text);
			mToast.show();

		}

}


